
package com.be.beadmin.product.service;

import com.be.beadmin.basicData.entity.User;
import com.be.beadmin.common.entity.PageEntity;
import com.be.beadmin.product.dto.input.WorkHoursRequestDto;
import com.be.beadmin.product.dto.input.WorkHoursRequestSimpDto;
import com.be.beadmin.product.dto.output.WorkHoursRequestEx;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @description 服务接口
* @author ljh
* @date 2023-04-18
**/
public interface WorkHoursRequestService {

    /**
    * 分页的查询接口
    * @param pageEntity
    * @return
    */
    Page<WorkHoursRequestEx> getWorkHoursRequestByPage(PageEntity pageEntity);



    /**
    * @param workHoursRequestSimpDto
    */
    void addWorkHoursRequest(WorkHoursRequestSimpDto workHoursRequestSimpDto);

    /**
    * @param workHoursRequestDto
    */
    void updateWorkHoursRequest(WorkHoursRequestDto workHoursRequestDto);

    /**
    * @param id
    */
    void delWorkHoursRequest(String id);

    /**
    * 删除多个角色
    * @param ids
    */
    void delWorkHoursRequests (List<String> ids);


    List<Float> getStandardHoursByWo(String wo);

    void addWorkHoursRequestOfProject(WorkHoursRequestSimpDto workHoursRequestSimpDto);

    User getProjectManufactManager(String projectId);
}